x86/AMD: distinguish compute units from hyper-threads
authorJan Beulich <jbeulich@suse.com>
Mon, 30 Jul 2018 09:24:01 +0000 (11:24 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 30 Jul 2018 09:24:01 +0000 (11:24 +0200)
commitbd51a6424202a5f1cd13dee6614bcb69ecbd2458
tree9cd7aafd8fed6429dc7e3bfba9ac6114d59a771e
parent0a2016ca2fabfe674c311dcfd8e15fec0ba3f7b6
x86/AMD: distinguish compute units from hyper-threads

Fam17 replaces CUs by HTs, which we should reflect accordingly, even if
the difference is not very big. The most relevant change (requiring some
code restructuring) is that the topoext feature no longer means there is
a valid CU ID.

Take the opportunity and convert wrongly plain int variables in
set_cpu_sibling_map() to unsigned int.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Brian Woods <brian.woods@amd.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: 9429b07a0af7f92a5f25e4068e11db881e157495
master date: 2018-07-19 09:42:42 +0200
xen/arch/x86/cpu/amd.c
xen/arch/x86/smpboot.c